package com.sword.erp.logistics.interfaces.api;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.Instant;

/**
 * 物流接口
 * @author sword
 * @date 2021/10/10 14:25
 */
@RestController
@Slf4j
public class LogisticsApi {
    /**
     * 创建物流记录
     * @return java.lang.String
     * @author sword
     * @date 2021/10/10 14:26
     */
    @GetMapping("")
    public String createLogistics() {
        log.info("物流单创建成功，单号为{}", Instant.now().toString());
        return "success";
    }
}
